import request from '/src/axios.js';


export const scopeApi = {
  getListDataScope: (current, size, params) => request({
    url: '/api/blade-system/data-scope/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  }),
  removeDataScope: (ids) => request({
    url: '/api/blade-system/data-scope/remove',
    method: 'post',
    params: {
      ids,
    }
  }),
  addDataScope: (row) => request({
    url: '/api/blade-system/data-scope/submit',
    method: 'post',
    data: row
  }),
  updateDataScope: (row) => request({
    url: '/api/blade-system/data-scope/submit',
    method: 'post',
    data: row
  }),

  getMenuDataScope: (id) => request({
    url: '/api/blade-system/data-scope/detail',
    method: 'get',
    params: {
      id,
    }
  })
}
